x86/fixmap: Modify fix_to_virt() to return a void pointer
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Jan 2018 17:48:00 +0000 (17:48 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 16 Jan 2018 18:34:04 +0000 (18:34 +0000)
commitaca7d2a72e510a56a2c2871e3e9d0f602bdf732a
treecdca2864dc6fdcfa20fafadce41003a29647f6e5
parentb38d96f596c7c0bca5f07366b15186c435776e8c
x86/fixmap: Modify fix_to_virt() to return a void pointer

Almost all users of fix_to_virt() actually want a pointer.  Include the cast
within the definition, so the callers don't need to.

Two users which need the integer value are switched to using __fix_to_virt()
directly.  A few users stay fully unchanged, due to GCC's void pointer
arithmetic extension causing the same behaviour.  Most users however have
their explicit casting dropped.

Since __iomem is not used consistently in Xen, we drop it too.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/acpi/lib.c
xen/arch/x86/mm.c
xen/arch/x86/mpparse.c
xen/arch/x86/msi.c
xen/arch/x86/tboot.c
xen/drivers/acpi/apei/apei-io.c
xen/drivers/char/ehci-dbgp.c
xen/drivers/char/ns16550.c
xen/include/asm-x86/apicdef.h
xen/include/asm-x86/fixmap.h